﻿using FangPage.Core;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Cookies;
using System;
using System.Collections.Generic;
using System.Text;

namespace FangPage.User.Controller
{
    public class logout : FPController
    {
        public override void Controller()
        {
            HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);

            FPResponse.WriteSuccess("退出成功。");
        }
    }
}
